<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>数据导出（卡厂批量）</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script src="${pageContext.request.contextPath }/scripts/boot.js" type="text/javascript"></script>
</head>
<style type="text/css">
html,body {
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
</style>
<body>
<form id="form1" method="post">
  <div style="padding-bottom:5px;">
    <table style="border:solid 1px #aaa;width:100%;">
      <tr style="text-align:left;">
        <td style="white-space:nowrap;text-align:left;">制卡批次:
        <input name="aaz001" class="mini-textbox" emptyText="请输入制卡批次" />
       银行：
        <input name="aae008" class="mini-combobox" valueField="bm" 
                                      textField="mch" id="aac058" emptyText="请选择银行"
                                      url="<%-- ${pageContext.request.contextPath }/AC01.do?method=getselect&lx=sfzjlx --%>"/>
        </td>
        
        <td style="width:15%;text-align: right; white-space:nowrap;">
          <a class="mini-button" iconCls="icon-search" onclick="search()"  >查询</a>
          <a class="mini-button"  onclick="ExportExcel()"  >导出</a>
          <a class="mini-button" iconCls="icon-remove"  onclick="onReset"  >重置</a>
        </td>
      </tr>
    </table>
  </div>
</form>
<div style="width:100%;">
  <div class="mini-toolbar" style="border-bottom:0;padding:0px;">
    <table style="width:100%;">
      <tr>
        <td style="width:100%;">
         &nbsp;
        </td>
      </tr>
    </table>
  </div>
</div>
<div class="mini-fit">
  <div id="datagrid1" class="mini-datagrid" style="width:100%;height:100%;" allowResize="true"
       url="<!-- AC01.do?method=getAC01 -->" idField="id" multiSelect="true" frozenStartColumn="0" frozenEndColumn="2">
    <div property="columns">
      <div type="checkcolumn"></div> 
      <div field="aab001" width="120" headerAlign="center" >劳动保障卡号</div>
      <div field="aac001" width="120" headerAlign="center" >社会保障卡号</div>
      <div field="aac003" width="120" headerAlign="center" >姓名</div>
      <div field="aac004" width="120" headerAlign="center"  >性别</div>
      <div field="aac002" width="120" headerAlign="center" >证件号</div>
      <div field="aaz501" width="120" headerAlign="center" >卡号</div>
      <div field="aac005" width="120" headerAlign="center" >民族</div>
      <div field="caz002" width="120" headerAlign="center" >通卡卡面号</div>
      <div field="aae008" width="120" headerAlign="center" >制卡银行</div>
    </div>
  </div>
</div>
<script type="text/javascript">
    mini.parse();
    var grid = mini.get("datagrid1");
    var form = new mini.Form("form1");
    grid.load();
    
    function search() {
      var AAC001 = mini.getbyName("aac001").getValue().trim();
      var AAC058 = mini.getbyName("aac058").getValue();
      var aac002 = mini.getbyName("aac002").getValue().trim();
      var AAC003 = mini.getbyName("aac003").getValue().trim();
      if (AAC001 == "" && AAC058 == "" && aac002 == "" && AAC003 == "") {
         mini.alert("请输入查询条件");
      }
      grid.load({ AAC001: AAC001, AAC058: AAC058, aac002: aac002, AAC003: AAC003});
      }

    function onKeyEnter(e) {
      search();
    }

    function onReset(e) {
       form.clear();
    }
</script>
</body>
</html>
